package com.example.qxfw.ybzz.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.qxfw.common.entity.qx.GridFile;
import com.example.qxfw.ybzz.mapper.GridFileMapper;
import com.example.qxfw.ybzz.service.GridFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GridFileServiceImpl implements GridFileService {

    @Autowired
    private GridFileMapper gridFileMapper;

    @Override
    public List<GridFile> getList(String dataChar, String timeChar, String type) {
        LambdaQueryWrapper<GridFile> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(GridFile::getDatechar,dataChar)
                .eq(GridFile::getTimechar,timeChar)
                .eq(GridFile::getType,type);
        List<GridFile> gridFiles = gridFileMapper.selectList(queryWrapper);
        return gridFiles;
    }
}
